package com.yanghui.dao;

import com.yanghui.pojo.Resource;
import com.yanghui.pojo.ResourceExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ResourceMapper {
    long countByExample(ResourceExample example);

    int deleteByExample(ResourceExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Resource record);

    int insertSelective(Resource record);

    List<Resource> selectByExample(ResourceExample example);

    Resource selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Resource record, @Param("example") ResourceExample example);

    int updateByExample(@Param("record") Resource record, @Param("example") ResourceExample example);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);

    /**
     * 按审核状态分组查询数量
     */
    List<?> selectResourceListByStatus();

    /**
     * 按照查询条件查询资源记录
     */
    List<Resource> selectLikeResourceListByPage(Map<String,Object> map);
}